<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .parent{
            width: 100vw;
            min-height: 200px;
            display: grid;
            grid-template-columns: repeat(auto-fill,minmax(110px,1fr));
            grid-auto-flow: dense;
            gap: 10px;
        }
        .child{
            background-image: linear-gradient(135deg,#10b980,#21c45e);
            width: 100px;
            height: 300px;
            margin: 5px;
            border-radius: 10px;
        }
        .child:nth-child(2n){
            height: 200px;
        }
    </style>
</head>
<body>
    <div class="parent">
        <div class="child">A</div>
        <div class="child">B</div>
        <div class="child">C</div>
        <div class="child">D</div>
        <div class="child">E</div>
        <div class="child">F</div>
        <div class="child">G</div>
    </div>
</body>
</html>